package main;

public class JavaNewInstance {
    public static void main(String[] args) throws InstantiationException, IllegalAccessException, ClassNotFoundException {
        /**
         * 示例6
         */
        Class clz = Class.forName("entity.Person"); //加载Person类
        Object obj = clz.newInstance(); //调用Person类的午餐构造创建Person类实例
        System.out.println(obj);
    }
}
